home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / WINPROGS / SAMDU240.ZIP / IOSTATUS.H < prev    next >
Text File  |  1993-10-01  |  3KB  |  76 lines

  1. /*********************************************************************/
  2. /*                                                                   */
  3. /*    Name:    IOSTATUS.H                                            */
  4. /*                                                                   */
  5. /*    Copyright (c) Stewart A. Berman 1992, All rights reserved      */
  6. /*                                                                   */
  7. /*********************************************************************/
  8. #ifndef __IOSTATUS_H__
  9. #define __IOSTATUS_H__
  10.  
  11. #define STATUS1_INIT                   0xFFFF
  12.  
  13. #define STATUS1_START                  0x0000
  14. #define STATUS1_BOOT_SECTOR            0x0001
  15. #define STATUS1_DIRECTORY              0x0002
  16. #define STATUS1_FAT                    0x0003
  17. #define STATUS1_SYSTEM_FILE            0x0004
  18. #define STATUS1_CYLINDER               0x0005
  19. #define STATUS1_HEAD                   0x0006
  20. #define STATUS1_SYSTEM                 0x0008
  21. #define STATUS1_END                    0x0009
  22.  
  23. #define STATUS1_ERROR                  0x000B
  24.  
  25. #define STATUS2_FILE                   0x0001
  26.  
  27. #define STATUS3_OPEN_FAIL              0x0001
  28. #define STATUS3_OPEN_FLAGS_BAD         0x0002
  29. #define STATUS3_OPEN_INPUT_BAD         0x0003
  30. #define STATUS3_OPEN_NOT_SUPPORTED     0x0004
  31. #define STATUS3_OPEN_FILE_IO_ERROR     0x0005
  32.  
  33. #define STATUS2_FILE_READ              0x0002
  34. #define STATUS2_FILE_WRITE             0x0003
  35.  
  36. #define STATUS2_WRITE                  0x0004
  37. #define STATUS2_READ                   0x0005
  38. #define STATUS2_FORMAT                 0x0006
  39. #define STATUS2_FORMATTING             0x0007
  40.  
  41. #define STATUS2_SYSTEM                 0x0008
  42.  
  43. #define STATUS2_SYSTEM_FILE_MISSING    0x0009
  44. #define STATUS2_SYSTEM_FILE_OPEN       0x000A
  45.  
  46. #define STATUS2_MEMORY                 0x000B
  47.  
  48. #define STATUS2_SYSTEM_FILE            0x000C
  49.  
  50. #define STATUS2_FAT                    0x000D
  51.  
  52. #define STATUS2_DIRECTORY              0x000E
  53.  
  54. #define STATUS2_SYSTEM_BOOT_SECTOR     0x000F
  55.  
  56. #define STATUS2_BOOT_SECTOR            0x0010
  57.  
  58. #define STATUS2_DISK_SPACE             0x0011
  59.  
  60. #define STATUS2_HEAD                   0x0012
  61.  
  62. #define STATUS2_COMPARE                0x0013
  63.  
  64. #define STATUS2_DPT                    0x0014
  65.  
  66. #define STATUS2_SECTORS                0x0015
  67.  
  68. #define GLOBALDOSALLOCERROR            0x0100
  69.  
  70. #define MAXSECTORSIZE 512
  71. #define MAXSECTORS     36
  72. #define MAXHEADS        2
  73. #define MAXCYLINDERS   80
  74.  
  75. #endif /* __IOSTATUS_H__ */
  76.